import dayjs from 'dayjs';
export default {
  name: 'cellular-store-modal',
  props: {
    cellularStores: {
      type: Array,
      default: () => [],
    },
    loading: {
      type: Boolean,
      default: false,
    },
    visible: {
      type: Boolean,
      default: true,
    },
    topChannelList: {
      type: Array,
      default: () => [],
    },
    deleting: {
      type: Boolean,
      default: false,
    },
  },

  data() {
    return {};
  },
  watch: {},
  methods: {
    onClose() {
      this.$emit('close');
    },
    tableRowStyle({ row }) {
      if (row.sortStore === 1) {
        return '';
      } else {
        return { background: '#EEEEEE' };
      }
    },
    // 删除门店
    async onDeleteStore(value) {
      this.$emit('deleteStore', value);
    },
    formatTime({ monthSalesModifyTime }) {
      if (!monthSalesModifyTime) {
        return null;
      }
      return dayjs(new Date(monthSalesModifyTime)).format('YYYY-MM-DD HH:mm:ss');
    },
  },
  mounted() {},
};
